package com.rui.cn.provider.controller.system;


import com.rui.cn.provider.service.system.SysRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/sysrolemenu")
public class SysRoleMenuController {
    @Autowired
    private SysRoleMenuService sysRoleMenuService;
    
    @PostMapping(value = "/saveRoleMenu")
    public Integer saveRoleMenu(@RequestParam("ids") Integer[] ids, @RequestParam("roleid") Integer roleid){
        return sysRoleMenuService.saveRoleMenu(ids,roleid);
    }

    @DeleteMapping(value = "/deleteByMap")
    public void deleteByMap(@RequestBody Map<String, Object> map){
        sysRoleMenuService.deleteByMap(map);
    }
}
